package com.dream.dao;

import com.dream.domain.Domain;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: ZhongGang
 * Date: 12-12-22
 * Time: 下午3:47
 */
public interface DomainDao {

    public <T extends Domain> T findByGuid(String guid, Class<T> clazz);

    public <T extends Domain> List<T> findAll(Class<T> clazz);

    public <T extends Domain> void saveOrUpdate(T t);

    public <T extends Domain> void delete(T t);

}
